{include inc/top.html}
<script src="{__DATA_URL__}js/jquery.rvf.1.2.js"></script>
<script src="{__CURTPL_URL__}js/form.js"></script>
<div class="index-main">
    <h1 class="h-title">{$atitle}
        <span class="sub-nav">
            <a href="{url:'admin@system-admin'}">返回列表</a>
        </span>
     </h1>
    <br/>
    <form action="{url:'admin@system-addmgr'}" id="form" method="post" class="form">
    <input type="hidden" name="admin[id]"   value="{:intval($admin['id'])}"/>
    <table class="table">
        <tr>
            <td class="td right"  width="80">帐号:</td>
            <td class="td left" >
                {if $admin['id']}
                <span class="text">{$admin['uname']}</span>
                {else}
                <input type="text" name="admin[uname]" class="req input" nullmsg="请输入帐号" errmsg="最多只能输入20个字符" rule="require" msgid="sname_msg"  maxlimit="20" value=""/>
                <span id="sname_msg" class="error-tips"></span>
                {/if}
            </td>
        </tr>
        <tr>
            <td class="td right" >密码:</td>
            <td class="td left" >
                <input type="password" name="admin[passwd]" class="req input" nullmsg="请输入密码" errmsg="最多只能输入20个字符" rule="require" msgid="passwd_msg"  maxlimit="20" value=""/>
                <span id="passwd_msg" class="error-tips"></span>
            </td>
        </tr>
        <tr>
            <td class="td right" ></td>
            <td class="td left"><input type="button" id="sbtn" url="{url:'cat-save'}"  class="button" value="确定"/></td>
        </tr>

    </table>
    <div class="clear"></div>
</div>
{include inc/bottom.html}